# -*- coding: utf-8 -*-

"""
Module implementing EditorWindow.
"""

from PyQt4.QtCore import pyqtSlot
from PyQt4.QtGui import QMainWindow,  QApplication

from .Ui_editor import Ui_EditorWindow

class EditorWindow(QMainWindow, Ui_EditorWindow):
    """
    Class documentation goes here.
    """
    def __init__(self, parent = None):
        """
        Constructor

        @param parent reference to the parent widget (QWidget)
        """
        QMainWindow.__init__(self, parent)
        self.setupUi(self)

    @pyqtSlot()
    def on_actionFull_Screen_activated(self):
        """
        Slot documentation goes here.
        """
        if self.isFullScreen():
            self.showNormal()
            self.actionFull_Screen.setChecked(False)
        else:
            self.showFullScreen()
            self.actionFull_Screen.setChecked(True)

    def main(self):
        self.win =  EditorWindow()
        self.win.show()

if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    win = EditorWindow()
    win.show()
    sys.exit(app.exec_())
